Proposed Thesis Title: Higher-order embeddings of program logics

نویسنده

  • Francis Tang
چکیده

Once we have formal operational semantics for a programming language, it is in theory possible to prove any valid statement about a program meeting its specification. However, in applications, a more abstract mechanism is desirable; an axiomatic style of reasoning. Perhaps the most well known axiomatic semantics is Hoare Logic[5]. Hoare Logic is both elegant and simple though the underlying programming language is, by modern standards, limiting. Recent developments in axiomatic semantics have given more elaborate logics, for example the Logic of Objects (AL) by Abadi and Leino[2]. The underlying language of AL has features such as objects, mutually recursive procedures (methods) and aliasing. As the underlying language has become more elaborate, so has the logic itself. One soon finds using such a logic slow and laborious to use in the absence of machine assistance. Embedding logics in theorem provers demonstrates to be a useful tool for checking examples. There are broadly two differing approaches to embedding program logics in higher-order logic. On one hand, we have the deep-style embedding, where the first-order syntax of the language (including variables, substitution and binding) are first encoded, followed by the operational semantics. Then the axiomatic rules can be derived directly from the operational semantics, using the proof tactics provided by the theorem prover. Thus correctness of the resulting axiomatic rules is guaranteed by the correctness of the theorem prover itself. However, it is necessary to define the notions of variable, substitution and binding: notions that are already present in the theorem prover. On the other hand, we have the traditional higher-order abstract syntax (HOAS) style of embedding. In this case, we take advantage of the existing notions of subsitution and binding of the theorem prover. Traditionally, the assertion logic is given a “deep” embedding: we embed the logic syntax and rules. The effort saved in reusing the theorem prover for the syntax, is offset by the need to define a whole logic again. However, this deep embedding of the assertion logic allows us to translate proofs in the embedding, back directly into proofs of the logic. We now propose a different style of encoding where we use both HOAS and a shallow embedding of the logic. The advantage is of course we inherit variable management and the proof tactics from the underlying theorem prover. However, soundness of the embedding becomes more involved.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Title Closure operators and complete embeddings of residuated lattices

In this paper, a theorem on the existence of complete embedding of partially ordered monoids into complete residuated lattices is shown. From this, many interesting results on residuated lattices and substructural logics follows, including various types of completeness theorems of substructural logics.

متن کامل

HOL based Universal Reasoning

At Unilog’2010 I have proposed classical higher-order logic HOL (Church’s type theory [1,9]) as a uniform framework for combining logics [2]. The main claim has been that many non-classical logics are just natural (embedded) fragments of classical HOL. The approach also supports combinations (e.g. fusions) of embedded logics; in particular, bridge rules can be postulated simply as axioms. In th...

متن کامل

Multimodal and intuitionistic logics in simple type theory

We study straightforward embeddings of propositional normal multimodal logic and propositional intuitionistic logic in simple type theory. The correctness of these embeddings is easily shown. We give examples to demonstrate that these embeddings provide an effective framework for computational investigations of various non-classical logics. We report some experiments using the higher-order auto...

متن کامل

Completeness and Logical Full Abstraction in Modal Logics for Typed Mobile Processes

We study an extension of Hennessy-Milner logic for the π-calculus which gives a sound and complete characterisation of representative behavioural preorders and equivalences over typed processes. New connectives are introduced representing actual and hypothetical typed parallel composition and hiding. We study three compositional proof systems, characterising the May/Must testing preorders and b...

متن کامل

Deciding Weak Monadic Second-order Logics using Complex-value Datalog

In this paper we propose to use techniques developed for query evaluation of Complex-value Datalog queries for determining satisfiability of WS1S and WS2S formulæ. This in turn can serve as a decision procedure for Description Logics for which embeddings into WS1S and WS2S have been proposed recently. We show that the use of database query evaluation techniques—in particular the Magic Set rewri...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2000